|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvectorimage.VectorImage
public class VectorImage
Vector image source class. Basically a collection of objects, an image size and an image background specification. Load it into a GVectorImage for a graphical representation.
| Constructor Summary | |
|---|---|
VectorImage()
Construct. |
|
VectorImage(java.awt.Dimension size,
java.awt.Color bgColor,
java.util.Vector objects)
Construct. |
|
| Method Summary | |
|---|---|
void |
addObject(VectorObject obj)
Add a VectorObject object. |
VectorObject |
findObjectAt(double x,
double y)
Find the topmost object that overlaps the point provided. |
java.awt.Color |
getBackground()
Return the background colour of the image. |
GVectorObject[] |
getGVectorObjects(VectorObject vo)
Return graphical representation(s) for the object given. |
java.util.Vector |
getObjects()
Return the VectorObjectSources present in this image. |
java.awt.Dimension |
getSize()
Return the size of the image. |
java.util.Vector |
getUsedColors()
Get the colors that are used in this image. |
void |
removeObject(VectorObject obj)
Remove a VectorObject object. |
void |
setBackground(java.awt.Color bgColor)
Set the background colour of the image. |
void |
setSize(java.awt.Dimension size)
Set the size of the image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VectorImage()
public VectorImage(java.awt.Dimension size,
java.awt.Color bgColor,
java.util.Vector objects)
| Method Detail |
|---|
public java.awt.Dimension getSize()
public void setSize(java.awt.Dimension size)
public java.awt.Color getBackground()
public void setBackground(java.awt.Color bgColor)
public java.util.Vector getObjects()
public void addObject(VectorObject obj)
public void removeObject(VectorObject obj)
public VectorObject findObjectAt(double x,
double y)
public java.util.Vector getUsedColors()
public GVectorObject[] getGVectorObjects(VectorObject vo)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||